#include<iostream>

#include"udp_server.hpp"
#include"dict_server.hpp"
int main(int argc,char* argv[]){
    // if(argc!=2){
    //     std::cout<<"Usage: "<<argv[0]<<" port"<<std::endl;
    //     return -1;
    // }
    // uint16_t port=atoi(argv[1]);
    // UdpServer server(port);
    // server.getLocalAddr();
    // server.Start();
    if(argc!=2){
        std::cout<<"Usage: "<<argv[0]<<" port"<<std::endl;
        return -1;
    }
    uint16_t port=atoi(argv[1]);
    DictServer server(port);
    //server.getLocalAddr();
    server.Start();
    return 0;
}